package com.zuul2;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableZuulProxy
public class Zuul2Application {

    public static void main(String[] args) {
        SpringApplication.run(Zuul2Application.class, args);
    }

    //配置filter
    @Bean
    public Myfilter myfilter() {
        return new Myfilter();
    }
}
